package com.hc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @author hc
 * @date 2022/1/7 14:41
 *
 */
/**
    * 权限表
    */
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_permission")
public class Permission {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 权限名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 显示优化级
     */
    @TableField(value = "priority")
    private Integer priority;

    /**
     * 状态码：1可用、2不可用
     */
    @TableField(value = "`status`")
    private Integer status;
}